{extend name="base/container" /}
{block name="main"}
<label class="layui-label">提示：新建的账户密码和账户名相同，状态为未激活，要使用需先到管理员列表中激活</label>
<div class="layui-form layui-form-pane">
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="waring">*</span>账户名</label>
        <div class="layui-input-block">
            <input type="text" name="account" placeholder="请输入要新增的用户名" autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="waring">*</span>姓名</label>
        <div class="layui-input-block">
            <input type="text" name="nickname" placeholder="请输入该用户姓名" autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <div class="layui-form-item">
	    <label class="layui-form-label"><span class="waring">*</span>性别</label>
        <div class="layui-input-block">
            <div class="radio-box">
                <input type="radio" name="sex" value="0" title="男" checked="">
                <input type="radio" name="sex" value="1" title="女">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="waring">*</span>身份证号</label>
        <div class="layui-input-block">
            <input type="text" name="identity" lay-verify="identity" placeholder="请输入身份证号" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">生日</label>
        <div class="layui-input-inline">
            <input type="text" name="birthday" id="birthday" lay-verify="datetime" placeholder="yyyy-MM-dd HH:mm:ss" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="waring">*</span>职位</label>
        <div class="layui-input-inline">
            <select name="role" lay-verify="required">
                <option value="">请选择用户所处职位...</option>
                <option value="GM">管理员</option>
                <option value="FD">财务人员</option>
                <option value="OP">运维人员</option>
                <option value="VW">查账人员</option>
                <option value="HH">合伙人</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <button id="worker_create" class="layui-btn layui-btn-fluid layuiadmin-btn-useradmin" lay-submit="" lay-filter="go">新建账户</button>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['laydate'],function(){
        var laydate = layui.laydate;
        //日期控件
        laydate.render({
            elem: '#birthday', //指定元素
            type: 'datetime',  //控件选择类型
            //range: true,        //定义分隔符，默认'-'
            format: 'yyyy-MM-dd HH:mm:ss'
        });
    })
</script>
{/block}

{block name="footer"}
{__block__}
{/block}